nums = []
while True:
    num = input('Enter a number:\n')

    if num == 'done':
        break

    try:
        num = float(num)
    except Exception as e:
        print('Please enter a number such as 1, 2, 1.0, etc. or done to stop entering.')
        exit()

    nums.append(num)

nums.sort()

if len(nums) == 0:
    print('without any number here')
    exit()

print('Maximum:', nums[-1])
print('Minimum:', nums[0])

# https://docs.python.org/3/library/stdtypes.html#common-sequence-operations
